package main.day11;

public class Test2 {
    public static void main(String[] args) {
        B1 b1 = new B1();
        B1<String> b11 = new B1<String>();

        B2 b2 = new B2();

    }
}

interface BB<T>{
    public void test(T t);
}

class B1<T> implements BB<T>{
    @Override
    public void test(T t) {
        System.out.println("B1");
    }
}

class B2<String> implements  BB<String>{
    @Override
    public void test(String string) {
        System.out.println("B2");
    }
}